import request from "@/utils/request";

const api_name = "/select";

export default {
  selectBoardEssay(title, findType, pageNum, pageSize, pBoardId) {
    return request({
      url: `${api_name}/selectBoardEssay`,
      method: "get",
      params: {
        title: title,
        findType: findType,
        pageNum: pageNum,
        pageSize: pageSize,
        pBoardId: pBoardId,
      },
    });
  },
  selectBoardEssayByTag(title, tag, findType, pageNum, pageSize, pBoardId) {
    return request({
      url: `${api_name}/selectBoardEssay`,
      method: "get",
      params: {
        title: title,
        tag: tag,
        findType: findType,
        pageNum: pageNum,
        pageSize: pageSize,
        pBoardId: pBoardId,
      },
    });
  },
  selectPerson(nickName) {
    return request({
      url: `${api_name}/selectPerson`,
      method: "get",
      params: {
        nickName,
      },
    });
  },
};
